﻿<h3>ChildComponent01</h3>

<button onclick="@PassToParent">Pass String to Parent</button>
<p>String received from Parent : @ToChild</p>

@functions {
    [Parameter]
    public string ToChild { get; set; }

    [Parameter]
    public Action<string> FromChild { get; set; }

    private string childString;

    private void PassToParent()
    {
        childString = ToChild + "- To Parent";
        FromChild(childString);
    }
}

